package Task2;

public class TestMain {
	public static void main(String[] args){
		//System.out.println("here");
		SortedIntList list = new SortedIntList();
		for(String val : args){
			list.add(Integer.parseInt(val));
		}
		list.delete(4);
		list.add(4);
		list.delete(5);
		//System.out.println("here");
		//System.out.println(list.size());
		//System.out.println(list.toArray().toString());
		//System.out.println("here");
		System.out.println(list.toString());
		System.out.println("size " + list.size());
		list.clear();
		System.out.println(list.toString());
		System.out.println("size " + list.size());

		list.add(10000000);
		list.add(20);
		list.add(20);
		list.add(4);
		list.add(20);
		System.out.println(list.toString());
		System.out.println("size " + list.size());
		list.delete(5);
		list.delete(5);
		list.delete(5);
		list.delete(10000000);
		System.out.println(list.toString());
		System.out.println("size " + list.size());
		list.delete(4);
		System.out.println(list.toString());
		System.out.println("size " + list.size());
		list.delete(20);
		System.out.println( "0th item: " + list.get(0));
		System.out.println("size " + list.size());
		System.out.println(list.toString());
		System.out.println("size " + list.size());
	}
}
